package com.hxz.admin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.hxz.admin.mapper.AdminIndexMapper;
import com.hxz.admin.service.AdminIndexService;
import com.hxz.entity.Article;
import com.hxz.entity.ArticleComment;

/**
 * 系统主页面显示Service方法实现类
 * 
 * @author hxz
 *
 */
/**
 * 文章主页面实现类
 * @author hxz
 * @description TODO
 * @data 2019年12月5日 上午9:33:50
 */
@Service
@Component
public class AdminIndexServiceImpl implements AdminIndexService {
	@Autowired
	private AdminIndexMapper adminIndexMapper;

	public List<Article> getArticleList() {

		return adminIndexMapper.getArticleList();
	}

	public List<ArticleComment> getCommentsList() {

		return adminIndexMapper.getCommentsList();
	}

	public List<Article> getCategoryList() {

		return adminIndexMapper.getArticleCategories();
	}

	public Integer getArticleNum() {
		
		return adminIndexMapper.getArticleNum();
	}

	public Integer getCommentNum() {
		
		return adminIndexMapper.getCommentNum();
	}

}
